home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / IDL / ODStor.idl < prev    next >
Encoding:
Text File  |  1997-02-13  |  1.8 KB  |  80 lines  |  [TEXT/MPS ]

  1. //#    Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  2.  
  3. #ifndef _ODSTOR_
  4. #define _ODSTOR_
  5.  
  6. #ifndef _ODOBJECT_
  7. #include "ODObject.idl"
  8. #endif
  9.  
  10. //==============================================================================
  11. // Classes defined in this interface
  12. //==============================================================================
  13.  
  14. interface   ODStorageSystem;
  15.  
  16. //==============================================================================
  17. // Classes used in this interface
  18. //==============================================================================
  19.  
  20. interface   ODSession;
  21. interface   ODContainer;
  22. interface   ODTypeList;
  23. interface   ODPlatformTypeList;
  24.  
  25.  
  26.  
  27. //==============================================================================
  28. // ODStorageSystem
  29. //==============================================================================
  30.  
  31. interface ODStorageSystem : ODObject   
  32. {
  33.     ODSession GetSession();
  34.     
  35.     ODContainer AcquireContainer(in ODContainerType containerType,
  36.                                 in ODContainerID id);
  37.     
  38.     ODContainer CreateContainer(in ODContainerType containerType,
  39.                                     in ODContainerID id);
  40.                       
  41.     void NeedSpace(in ODSize memSize,
  42.                     in ODBoolean doPurge);
  43.                     
  44.     ODTypeList    CreateTypeList(in ODTypeList typeList);
  45.     
  46.     ODPlatformTypeList    CreatePlatformTypeList(in ODPlatformTypeList typeList);
  47.  
  48.     
  49. #ifdef __SOMIDL__
  50. #ifdef _PLATFORM_MACINTOSH_
  51.     implementation
  52.     {
  53.         majorversion = 1; minorversion = 0;
  54.     
  55.           functionprefix = ODStorageSystem;
  56.         
  57.         override:
  58.             somUninit,
  59.             Purge;
  60.         
  61.         releaseorder:
  62.             GetSession,
  63.             AcquireContainer,
  64.             CreateContainer,
  65.             NeedSpace,
  66.             CreateTypeList,
  67.             CreatePlatformTypeList,
  68.             reserved1, 
  69.             reserved2, 
  70.             reserved3, 
  71.             reserved4;        
  72.         
  73.     
  74.   };
  75. #endif //# _PLATFORM_MACINTOSH_
  76. #endif //# __SOMIDL__
  77. };
  78.  
  79. #endif  // _ODSTOR_
  80.